package controller;

import java.io.IOException;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;

public class RegisterSucceeedController {
	@FXML
	private Button okbtn;
	
	public void  ok(ActionEvent event)
	{
		 Parent root;
			try {
					
				root = FXMLLoader.load(getClass().getResource("/application/Login.fxml"));
				Scene scene = new Scene(root); 
				//stage= new Stage();
				Stage stage = (Stage) okbtn.getScene().getWindow();
				stage.setScene(scene);
				stage.show();
			} catch (IOException e) {
				e.printStackTrace();
			}
					
	}}
	
